﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace LyyCMS.Migrations
{
    public partial class add_display_desc_virtual : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Connact",
                table: "Comments",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "Blogs",
                keyColumn: "Id",
                keyValue: 1,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 672, DateTimeKind.Local).AddTicks(6582));

            migrationBuilder.UpdateData(
                table: "Blogs",
                keyColumn: "Id",
                keyValue: 2,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 676, DateTimeKind.Local).AddTicks(6584));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 1,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 691, DateTimeKind.Local).AddTicks(6593));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 2,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 691, DateTimeKind.Local).AddTicks(6593));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 3,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 691, DateTimeKind.Local).AddTicks(6593));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 4,
                column: "Create_At",
                value: new DateTime(2019, 10, 16, 9, 6, 6, 691, DateTimeKind.Local).AddTicks(6593));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Connact",
                table: "Comments");

            migrationBuilder.UpdateData(
                table: "Blogs",
                keyColumn: "Id",
                keyValue: 1,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 138, DateTimeKind.Local).AddTicks(307));

            migrationBuilder.UpdateData(
                table: "Blogs",
                keyColumn: "Id",
                keyValue: 2,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 140, DateTimeKind.Local).AddTicks(308));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 1,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 150, DateTimeKind.Local).AddTicks(314));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 2,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 150, DateTimeKind.Local).AddTicks(314));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 3,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 150, DateTimeKind.Local).AddTicks(314));

            migrationBuilder.UpdateData(
                table: "Comments",
                keyColumn: "Id",
                keyValue: 4,
                column: "Create_At",
                value: new DateTime(2019, 10, 15, 17, 11, 35, 150, DateTimeKind.Local).AddTicks(314));
        }
    }
}
